﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.SimpleFlow
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.SimpleFlow;

    public class MapForsfNode : EntityMapping<sfNode>
    {
        public MapForsfNode()
        {
            Property(x => x.Describe, map =>
            {
                map.Length(5000000);
            }); 
            
            Property(x => x.IsEnd, map =>
            {
            });

            Property(x => x.Title, map =>
            {
                map.Length(500);
            });

            ManyToOne(x => x.Operator, map =>
            {
                map.Column("OpUserID");
            });

            ManyToOne(x => x.Record, map =>
            {
                map.Column("RecordID");
            });
        }
    }
}
